/// <license>
/// This software and are provided as-is and without  warranty. 
/// This is  free  software,  as long  as you  clearly  display
/// the original author and his company for at least  1  second
/// on the attached display. If you need a commercial   license 
/// in which you do not have these restrictions, please contact
/// us via our website.
/// 
/// Author: Mario Di Vece
/// Unosquare S.A. de C.V. Copyright (c) 2013
/// url: http://www.unosquare.com
/// </license>

namespace Unosquare.Labs.Drivers.Vizic
{
    /// <summary>
    /// A saquare drawable object
    /// </summary>
    public class VizicRectangle : VizicSceneObjectBase
    {

        public VizicColor Color { get; set; }

        public VizicRectangle(VizicSceneBase scene)
            : base(scene)
        {
            this.Color = VizicColor.Blue;
            this.Width = 16;
            this.Height = 16;
        }

        public override void Draw()
        {
            Scene.LCD.ForegroundColor = this.Color;
            Scene.LCD.FillBackground = true;
            Scene.LCD.DrawRectangle(this.X, this.Y, this.Width, this.Height);
        }
    }

}
